package com.highcom.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration //配置类注解
@ComponentScan("com.highcom")
@Import({JDBCConfig.class})
public class SpringConfig {

    @Bean("b1")
    public String getB1(){
        System.out.println("b1");
        return "b1";
    }
}
